<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>使用优惠券</title>
    <script> var NotcheckLogin = 1;</script>
    <script src="./assets/layer/layer.js"></script>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="./assets/js/config.js"></script>
</head>
<body>
    <script>
        


        
if( getCookie('jiamengopenid') == ''){
    layer.open({
        content: '您未登录,请登录后重新打开微信扫一扫'
        ,btn: ['我知道了']
        ,yes: function(index){
            location = './login.html';
        }
    });
}else{
    $.get('/api/client/getTicketInfo/id/'+$_GET().id,{},function(data){
        //询问框
        layer.open({
            content: '确定要使用 <b style="color:red"> '+data.t_coupon_name+'</b> 优惠券吗  ( <b> ￥'+data.f_price+'</b> )?'
            ,btn: ['确定使用', '退出']
            ,yes: function(index){
                $.post('/api/client/auditing',{cid:$_GET().id,auding:getCookie('uid')},function(data){
                    alert(data.data);
                },'json')
            }
        });
    })
}









    </script>



</body>
</html>